FROM cr6588/jdk8-centos7:latest
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TZ=Asia/Shanghai

VOLUME [ "/data" ]

ADD springproject/target/demo-api*.jar /data/demo-api.jar

EXPOSE 8080
# ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/demo.jar"]
ENTRYPOINT ["java", "-jar","/data/demo-api.jar"]
